#include "net/Socket.h"
#include <iostream>
#include "net/BitStream.h"

using namespace phynet;
using namespace net;

int main()
{
	BitStream x;
	x.WriteT(15, 4);
	x.WriteT(15, 6);
	x.WriteT(35, 6);
	x.WriteT(3, 3);

	x.Begin();

	UInt8 temp;
	x.ReadT(temp, 4);
	x.ReadT(temp, 6);
	x.ReadT(temp, 6);
	x.ReadT(temp, 3);

	return 0;
}